<?php
#use app;

namespace app\index\controller;
use app\BaseController;
use think\facade\View;

class Index  extends BaseController 
{

    function initialize(){

    #echo "预处理<br/>";
    }


    public function index()
    {
            return view('index',['name'=>'php']);
            #View::assign('name','ThinkPHP');
            #return View::fetch('index/index');
           #return   "首页打开<br/>";

    }

    public function helloo($name = 'ThinkPHP6')
    {
        return View::fetch();
    }

    public function  getip(){

        return  '111113333333333';

        }
    public function btimes(){

    $time = strtotime('2088-01-12 12:25:45');
    return $time();
    
    }
    public function  nums(){

    $a = 34/3;
    var_dump($a);
    echo  $b = intval($a);
    var_dump($b);

    }












}
?>
